package com.eedi.framework.oauth2.dal.mapper;

import com.eedi.framework.mybatis.core.mapper.BaseMapperX;
import com.eedi.framework.oauth2.dal.dataobject.SysOAuth2CodeDO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SysOAuth2CodeMapper extends BaseMapperX<SysOAuth2CodeDO> {

    default SysOAuth2CodeDO selectByCode(String code) {
        return selectOne(SysOAuth2CodeDO::getCode, code);
    }

}
